/*
 * @Author: Crism
 * @Date: 2018-07-31 14:07:38
 * @LastEditors: Crism
 * @LastEditTime: 2018-08-10 10:29:04
 * @Description: 
 * @Email: crism@qq.com
 */


const Router = require('koa-router');
const router = new Router();
const getData = require('../controller/getData');
const Authors = require('../controller/getAuthors');
const Poetic = require('../controller/poetic_c');

router.all('/', function (ctx) { return ctx.body = 'hello world'; });

router.all('/getTests', getData.getData);
router.all('/getDataTest', getData.getDataTest);
router.all('/getAuthors', Authors.getAuthors);
router.all('/getAuthorInfo', Authors.getAuthorInfo);
router.all('/getAuthorDetail', Authors.getAuthorDetail);
router.all('/getPoetics', Poetic.getPoetics);

module.exports = router;
